global.webpackJsonp([ 58 ], {
    "+P8U": function(t, e) {},
    "/W+t": function(t, e, a) {
        Object.defineProperty(e, "__esModule", {
            value: !0
        });
        var i = a("5nAL"), s = a.n(i), n = a("xhZw");
        new s.a(n.a).$mount(), e.default = {
            config: {
                navigationBarTitleText: "二维码"
            }
        };
    },
    "40om": function(t, e, a) {
        var i = {
            render: function() {
                var t = this, e = t.$createElement, a = t._self._c || e;
                return a("div", {
                    staticClass: "qr-code-page",
                    class: [ t.isIphoneX ? "is-iphone-x" : "", "theme-" + t.theme ],
                    attrs: {
                        catchtouchmove: "move"
                    }
                }, [ t.cardList.length > 0 ? [ a("div", {
                    staticClass: "code-container"
                }, [ a("div", {
                    staticClass: "card-info",
                    class: {
                        "no-grade": !t.gradeName
                    }
                }, [ t._m(0), t._v(" "), a("div", {
                    staticClass: "info"
                }, [ t.gradeName ? a("div", {
                    staticClass: "vip"
                }, [ a("xc-icon", {
                    attrs: {
                        name: "huangguan",
                        size: "40",
                        color: "#fff",
                        "size-unit": "rpx",
                        mpcomid: "0"
                    }
                }), t._v(" "), a("span", [ t._v(t._s(t.gradeName)) ]) ], 1) : t._e(), t._v(" "), a("div", {
                    staticClass: "venue"
                }, [ t._v(t._s(t.venueName)) ]), t._v(" "), a("div", {
                    staticClass: "no"
                }, [ t._v("NO." + t._s(t.ecardNo)) ]) ]) ]), t._v(" "), t._m(1) ]), t._v(" "), a("div", {
                    staticClass: "card-list-box"
                }, t._l(t.cardList, function(e, i) {
                    return a("div", {
                        key: i,
                        staticClass: "item",
                        class: {
                            selected: e.ecardNo == t.ecardNo
                        },
                        attrs: {
                            eventid: "0-" + i
                        },
                        on: {
                            tap: function(a) {
                                t.showCardCode(e);
                            }
                        }
                    }, [ a("xc-icon", {
                        attrs: {
                            name: "gonggongke",
                            size: "40",
                            color: e.ecardNo == t.ecardNo ? "#fff" : "#f2f3f8",
                            "size-unit": "rpx",
                            mpcomid: "1-" + i
                        }
                    }), t._v(" "), a("p", {
                        staticClass: "no"
                    }, [ t._v(t._s(e.showCard)) ]) ], 1);
                })) ] : t._e() ], 2);
            },
            staticRenderFns: [ function() {
                var t = this.$createElement, e = this._self._c || t;
                return e("div", {
                    staticClass: "fake-background"
                }, [ e("div", {
                    staticClass: "hightlight-box"
                }) ]);
            }, function() {
                var t = this.$createElement, e = this._self._c || t;
                return e("div", {
                    staticClass: "code-box"
                }, [ e("div", {
                    staticClass: "card-code"
                }, [ e("div", {
                    staticClass: "code"
                }, [ e("canvas", {
                    attrs: {
                        "canvas-id": "firstCanvas"
                    }
                }) ]), this._v(" "), e("div", {
                    staticClass: "update-info"
                }, [ e("span", [ this._v("每分钟自动更新") ]) ]) ]) ]);
            } ]
        };
        e.a = i;
    },
    niSZ: function(t, e, a) {
        var i = a("Dd8w"), s = a.n(i), n = a("9jZB"), r = a("rG5b"), c = a("75He"), o = a("RyI1"), d = a.n(o), h = a("YaEn"), u = a("8xno");
        e.a = {
            data: function() {
                return {
                    qrCode: "",
                    ecardNo: "",
                    timer: null,
                    count: 0,
                    cardType: "",
                    cardList: [],
                    venueName: "",
                    gradeName: ""
                };
            },
            components: {
                "xc-icon": c.a
            },
            mixins: [ u.a ],
            onLoad: function() {
                this.venueName = "", this.gradeName = "", this.ecardNo = this.$root.$mp.query.ecardNo || "", 
                this.cardType = "E" === this.ecardNo.slice(0, 1) ? 0 : 1, clearInterval(this.timer), 
                this.timer = null, this.getCardList(), this.$evtBus.$on(this.$EVT_TYPES.REFRESH_INFO_LIST, this.getCardList);
            },
            onUnload: function() {
                clearInterval(this.timer), this.timer = null;
            },
            watch: {
                count: function() {
                    0 === this.count && this.getQRcode();
                }
            },
            methods: {
                move: function() {},
                getTime: function() {
                    var t = this, e = 60;
                    this.count = e, this.timer = setInterval(function() {
                        e > 0 && e <= 60 && (e--, t.count = e);
                    }, 1e3);
                },
                draw: function() {
                    var t = 440 * this.$store.state.rpxRatio;
                    Object(n.a)({
                        width: t,
                        height: t,
                        canvasId: "firstCanvas",
                        text: this.qrCode
                    });
                },
                getQRcode: function() {
                    var t = this;
                    r.j.userQrcode(this.ecardNo).then(function(e) {
                        t.qrCode = "EN" + e.qrcode, t.draw(), t.getTime(), t.getPhoneType(), t.isAndroid && setTimeout(function() {
                            t.draw();
                        }, 1e3);
                    });
                },
                getCardList: function() {
                    var t = this;
                    r.i.getCardList().then(function(e) {
                        var a = e.cardList.length ? e.cardList[0].cardInfo : [];
                        t.cardList = a.map(function(t) {
                            return s()({}, t, {
                                cardType: t.ecardNo.slice(0, 1),
                                showCard: "**" + t.ecardNo.slice(t.ecardNo.length - 4)
                            });
                        }), t.getVenueName(), t.cardList.length > 0 ? (t.ecardNo = t.cardList[0].ecardNo, 
                        t.getQRcode()) : h.a.go({
                            key: "bindCard",
                            params: {
                                refreshFlag: !0
                            }
                        });
                    });
                },
                getVenueName: function() {
                    var t = this, e = d()(this.cardList, function(e) {
                        return e.ecardNo == t.ecardNo;
                    });
                    e.length > 0 && (this.venueName = e[0].centerName, e[0].gradeName && (this.gradeName = e[0].gradeName));
                },
                showCardCode: function(t) {
                    this.ecardNo = t.ecardNo, this.venueName = t.centerName, this.gradeName = t.gradeName ? t.gradeName : "", 
                    clearInterval(this.timer), this.count = 0;
                }
            }
        };
    },
    xhZw: function(t, e, a) {
        var i = a("niSZ"), s = a("40om"), n = a("hHyJ")(i.a, s.a, function(t) {
            a("+P8U");
        }, null, null);
        e.a = n.exports;
    }
}, [ "/W+t" ]);